<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Creates a new Button</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swfbutton.addshape.html">SWFButton::addShape</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swfbutton.setaction.html">SWFButton::setAction</a></div>
 <div class="up"><a href="class.swfbutton.html">SWFButton</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="swfbutton.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SWFButton::__construct</h1>
  <p class="verinfo">(PHP 5 &lt;= 5.3.0, PECL ming SVN)</p><p class="refpurpose"><span class="refname">SWFButton::__construct</span> &mdash; <span class="dc-title">Creates a new Button</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-swfbutton.construct-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>SWFButton::__construct</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象，包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
  <p class="para">
   Creates a new Button. 
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-swfbutton.construct-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   This simple example will show your usual interactions with buttons : 
   rollover, rollon, mouseup, mousedown, noaction.
   <div class="example" id="example-3450">
    <p><strong>Example #1 Usual interactions with buttons</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$f&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SWFFont</span><span style="color: #007700">(</span><span style="color: #DD0000">"_serif"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$p&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SWFSprite</span><span style="color: #007700">();<br /><br />function&nbsp;</span><span style="color: #0000BB">label</span><span style="color: #007700">(</span><span style="color: #0000BB">$string</span><span style="color: #007700">)&nbsp;<br />{<br />&nbsp;&nbsp;global&nbsp;</span><span style="color: #0000BB">$f</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">$t&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SWFTextField</span><span style="color: #007700">();<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$t</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setFont</span><span style="color: #007700">(</span><span style="color: #0000BB">$f</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$t</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addString</span><span style="color: #007700">(</span><span style="color: #0000BB">$string</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$t</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setHeight</span><span style="color: #007700">(</span><span style="color: #0000BB">200</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$t</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setBounds</span><span style="color: #007700">(</span><span style="color: #0000BB">3200</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">200</span><span style="color: #007700">);<br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">$t</span><span style="color: #007700">;<br />}<br /><br />function&nbsp;</span><span style="color: #0000BB">addLabel</span><span style="color: #007700">(</span><span style="color: #0000BB">$string</span><span style="color: #007700">)&nbsp;<br />{<br />&nbsp;&nbsp;global&nbsp;</span><span style="color: #0000BB">$p</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">$i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$p</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">(</span><span style="color: #0000BB">label</span><span style="color: #007700">(</span><span style="color: #0000BB">$string</span><span style="color: #007700">));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$p</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">nextFrame</span><span style="color: #007700">();<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$p</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">remove</span><span style="color: #007700">(</span><span style="color: #0000BB">$i</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">$p</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">SWFAction</span><span style="color: #007700">(</span><span style="color: #DD0000">"stop();"</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">addLabel</span><span style="color: #007700">(</span><span style="color: #DD0000">"NO&nbsp;ACTION"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">addLabel</span><span style="color: #007700">(</span><span style="color: #DD0000">"SWFBUTTON_MOUSEUP"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">addLabel</span><span style="color: #007700">(</span><span style="color: #DD0000">"SWFBUTTON_MOUSEDOWN"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">addLabel</span><span style="color: #007700">(</span><span style="color: #DD0000">"SWFBUTTON_MOUSEOVER"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">addLabel</span><span style="color: #007700">(</span><span style="color: #DD0000">"SWFBUTTON_MOUSEOUT"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">addLabel</span><span style="color: #007700">(</span><span style="color: #DD0000">"SWFBUTTON_MOUSEUPOUTSIDE"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">addLabel</span><span style="color: #007700">(</span><span style="color: #DD0000">"SWFBUTTON_DRAGOVER"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">addLabel</span><span style="color: #007700">(</span><span style="color: #DD0000">"SWFBUTTON_DRAGOUT"</span><span style="color: #007700">);<br /><br />function&nbsp;</span><span style="color: #0000BB">rect</span><span style="color: #007700">(</span><span style="color: #0000BB">$r</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$g</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$b</span><span style="color: #007700">)&nbsp;<br />{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$s&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SWFShape</span><span style="color: #007700">();<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setRightFill</span><span style="color: #007700">(</span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addFill</span><span style="color: #007700">(</span><span style="color: #0000BB">$r</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$g</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$b</span><span style="color: #007700">));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">drawLine</span><span style="color: #007700">(</span><span style="color: #0000BB">600</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">drawLine</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">600</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">drawLine</span><span style="color: #007700">(-</span><span style="color: #0000BB">600</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">drawLine</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">600</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">$s</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #0000BB">$b&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SWFButton</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addShape</span><span style="color: #007700">(</span><span style="color: #0000BB">rect</span><span style="color: #007700">(</span><span style="color: #0000BB">0xff</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">SWFBUTTON_UP&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">SWFBUTTON_HIT</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addShape</span><span style="color: #007700">(</span><span style="color: #0000BB">rect</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0xff</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">SWFBUTTON_OVER</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addShape</span><span style="color: #007700">(</span><span style="color: #0000BB">rect</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0xff</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">SWFBUTTON_DOWN</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addAction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">SWFAction</span><span style="color: #007700">(</span><span style="color: #DD0000">"setTarget('/label');&nbsp;gotoFrame(1);"</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SWFBUTTON_MOUSEUP</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addAction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">SWFAction</span><span style="color: #007700">(</span><span style="color: #DD0000">"setTarget('/label');&nbsp;gotoFrame(2);"</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SWFBUTTON_MOUSEDOWN</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addAction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">SWFAction</span><span style="color: #007700">(</span><span style="color: #DD0000">"setTarget('/label');&nbsp;gotoFrame(3);"</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SWFBUTTON_MOUSEOVER</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addAction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">SWFAction</span><span style="color: #007700">(</span><span style="color: #DD0000">"setTarget('/label');&nbsp;gotoFrame(4);"</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SWFBUTTON_MOUSEOUT</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addAction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">SWFAction</span><span style="color: #007700">(</span><span style="color: #DD0000">"setTarget('/label');&nbsp;gotoFrame(5);"</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SWFBUTTON_MOUSEUPOUTSIDE</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addAction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">SWFAction</span><span style="color: #007700">(</span><span style="color: #DD0000">"setTarget('/label');&nbsp;gotoFrame(6);"</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SWFBUTTON_DRAGOVER</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addAction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">SWFAction</span><span style="color: #007700">(</span><span style="color: #DD0000">"setTarget('/label');&nbsp;gotoFrame(7);"</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SWFBUTTON_DRAGOUT</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$m&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SWFMovie</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setDimension</span><span style="color: #007700">(</span><span style="color: #0000BB">4000</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3000</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">(</span><span style="color: #0000BB">$p</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$i</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setName</span><span style="color: #007700">(</span><span style="color: #DD0000">"label"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$i</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">moveTo</span><span style="color: #007700">(</span><span style="color: #0000BB">400</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1900</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">(</span><span style="color: #0000BB">$b</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$i</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">moveTo</span><span style="color: #007700">(</span><span style="color: #0000BB">400</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">900</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">'Content-type:&nbsp;application/x-shockwave-flash'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">output</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
  <p class="para">
   This simple example will enables you to drag draw a big red button
   on the windows. No drag-and-drop, just moving around.
   <div class="example" id="example-3451">
    <p><strong>Example #2 Drag example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$s&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SWFShape</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setRightFill</span><span style="color: #007700">(</span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addFill</span><span style="color: #007700">(</span><span style="color: #0000BB">0xff</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">drawLine</span><span style="color: #007700">(</span><span style="color: #0000BB">1000</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">drawLine</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">1000</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">drawLine</span><span style="color: #007700">(-</span><span style="color: #0000BB">1000</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$s</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">drawLine</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,-</span><span style="color: #0000BB">1000</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$b&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SWFButton</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addShape</span><span style="color: #007700">(</span><span style="color: #0000BB">$s</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">SWFBUTTON_HIT&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">SWFBUTTON_UP&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">SWFBUTTON_DOWN&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">SWFBUTTON_OVER</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addAction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">SWFAction</span><span style="color: #007700">(</span><span style="color: #DD0000">"startDrag('/test',&nbsp;0);"</span><span style="color: #007700">),&nbsp;</span><span style="color: #FF8000">//&nbsp;'0'&nbsp;means&nbsp;don't&nbsp;lock&nbsp;to&nbsp;mouse<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SWFBUTTON_MOUSEDOWN</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$b</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addAction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">SWFAction</span><span style="color: #007700">(</span><span style="color: #DD0000">"stopDrag();"</span><span style="color: #007700">),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SWFBUTTON_MOUSEUP&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000BB">SWFBUTTON_MOUSEUPOUTSIDE</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$p&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SWFSprite</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$p</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">(</span><span style="color: #0000BB">$b</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$p</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">nextFrame</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">$m&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SWFMovie</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">(</span><span style="color: #0000BB">$p</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$i</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setName</span><span style="color: #007700">(</span><span style="color: #DD0000">'test'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$i</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">moveTo</span><span style="color: #007700">(</span><span style="color: #0000BB">1000</span><span style="color: #007700">,</span><span style="color: #0000BB">1000</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">'Content-type:&nbsp;application/x-shockwave-flash'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$m</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">output</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swfbutton.addshape.html">SWFButton::addShape</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swfbutton.setaction.html">SWFButton::setAction</a></div>
 <div class="up"><a href="class.swfbutton.html">SWFButton</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
